import {developmentUrl} from "@/config/env.js";
import request from "axios";
export const  dictionaryData=()=>request({
    url:`${developmentUrl}/dict/list`,
    method:"GET"
});
export const dictionaryAdd=(data)=>request({
    url:`${developmentUrl}/dict?dictName=${data.dictName}&dictValues=${data.dictValues}`,
    method:"POST"
})
export const dictionaryModify=(data)=>request({
    url:`${developmentUrl}/dict?id=${data.id}&dictName=${data.dicName}&dictValues=${data.dictValues}`,
    method:"PUT"
})
export const dictionaryDelete=(data)=>request({
    url:`${developmentUrl}/dict?id=${data.id}`,
    method:"DELETE"
})
export const dictionarySearch=(data)=>request({
    url:`${developmentUrl}/dict/list?name=${data.dictName}&page=1`,
    method:"GET"
})